package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 养老机构表
 * </p>
 *
 * @author GZ
 * @since 2020-11-05
 */
public class YlPensionInfo extends Model<YlPensionInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（养老机构编号）
     */
    @TableId(value = "PENSION_NO", type = IdType.AUTO)
    private Integer pensionNo;

    /**
     * 养老机构名称（唯一验证，字段唯一）
     */
    @TableField("PENSION_NAME")
    private String pensionName;

    /**
     * 养老机构地址
     */
    @TableField("PENSION_ADDRESS")
    private String pensionAddress;

    /**
     * 养老机构联系方式
     */
    @TableField("LINK_PHONE")
    private String linkPhone;

    /**
     * 养老机构状态（1：正常 9：删除）
     */
    @TableField("PENSION_STATE")
    private String pensionState;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 管理员编号
     */
    @TableField("TELLER_NO")
    private String tellerNo;

    public Integer getPensionNo() {
        return pensionNo;
    }

    public void setPensionNo(Integer pensionNo) {
        this.pensionNo = pensionNo;
    }
    public String getPensionName() {
        return pensionName;
    }

    public void setPensionName(String pensionName) {
        this.pensionName = pensionName;
    }
    public String getPensionAddress() {
        return pensionAddress;
    }

    public void setPensionAddress(String pensionAddress) {
        this.pensionAddress = pensionAddress;
    }
    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }
    public String getPensionState() {
        return pensionState;
    }

    public void setPensionState(String pensionState) {
        this.pensionState = pensionState;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getTellerNo() {
        return tellerNo;
    }

    public void setTellerNo(String tellerNo) {
        this.tellerNo = tellerNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.pensionNo;
    }

    @Override
    public String toString() {
        return "YlPensionInfo{" +
        "pensionNo=" + pensionNo +
        ", pensionName=" + pensionName +
        ", pensionAddress=" + pensionAddress +
        ", linkPhone=" + linkPhone +
        ", pensionState=" + pensionState +
        ", createTime=" + createTime +
        ", tellerNo=" + tellerNo +
        "}";
    }
}
